//
//  PlaceMapViewController.m
//  SportSocial
//
//  Created by yull on 15/3/13.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import "PlaceMapViewController.h"
#import "BMapKit.h"

@interface PlaceMapViewController ()

@end

@implementation PlaceMapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self addCommonBackButton];
    
    self.title = @"场馆位置";
    
    BMKMapView *mapView = [[BMKMapView alloc] initWithFrame:self.view.bounds];
    mapView.autoresizingMask = self.view.autoresizingMask;
    mapView.centerCoordinate = self.center;
    mapView.zoomLevel = 18;
    
    BMKPointAnnotation* annotation = [[BMKPointAnnotation alloc]init];
    annotation.coordinate = self.center;
    [mapView addAnnotation:annotation];
    
    [self.view addSubview:mapView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
